package com.zbp.config.taskExecutor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class CanalTaskService {
    @Async
    public void executeAsyncBinLogTask(String bingLog) {
        log.info("线程" + Thread.currentThread().getName() + " 执行异步任务：canal 监听到主库sql变化----> " + bingLog);
    }
}

